package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.enums.AlbumStatType;
import com.atguigu.tingshu.model.album.AlbumStat;
import com.atguigu.tingshu.vo.album.AlbumStatVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlbumStatMapper extends BaseMapper<AlbumStat> {

    /**
     * 根据专辑ID查询专辑统计信息
     *
     * @param albumId        专辑ID
     * @param albumStatTypes 统计类型列表
     * @return 专辑统计信息
     */
    AlbumStatVo getAlbumStatVoByAlbumId(@Param("albumId") Long albumId,
                                        @Param("albumStatTypes") List<AlbumStatType> albumStatTypes);
}
